#include <gnome.h>
#include <string.h>
#include <dirent.h>
#include <sys/types.h>
#include <sys/dir.h>
#include <gdk-pixbuf/gdk-pixbuf.h>

extern int alphasort();

gboolean on_2cann_app_delete_event(GtkWidget *widget, GdkEvent *event, gpointer user_data);

void on_new1_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_open1_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_save1_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_save_as1_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_quit1_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_cut1_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_copy1_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_paste1_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_clear1_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_properties1_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_preferences1_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_about1_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_toolbutton2_clicked(GtkToolButton *toolbutton, gpointer user_data);

gboolean on_fileChooserDialog_delete_event(GtkWidget *widget, GdkEvent *event, gpointer user_data);

void on_button1_clicked(GtkButton *button, gpointer user_data);

void on_button2_clicked(GtkButton *button, gpointer user_data);

void on_erode_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_dilate_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_erode_square_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_erode_cross_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_erode_horizontal_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_erode_vertical_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_erode_secondary_diagonal_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_erode_main_diagonal_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_dilate_square_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_dilate_cross_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_dilate_horizontal_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_dilate_vertical_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_dilate_main_diagonal_activate(GtkMenuItem *menuitem, gpointer user_data);

void on_dilate_secondary_diagonal_activate(GtkMenuItem *menuitem, gpointer user_data);

gboolean on_selectSourcePathDialog_delete_event(GtkWidget *widget, GdkEvent *event, gpointer user_data);

void on_selectSourcePathDialog_cancelButton_activate(GtkButton *button, gpointer user_data);

void on_selectSourcePathDialog_applyButton_clicked(GtkButton *button, gpointer user_data);

void on_selectSourcePathDialog_radioButton1_toggled(GtkToggleButton *togglebutton, gpointer user_data);

void on_selectSourcePathDialog_radiobutton2_toggled(GtkToggleButton *togglebutton, gpointer user_data);

void on_selectSourcePathDialog_openbutton_clicked (GtkButton *button, gpointer user_data);

void set2CannApp(GtkWidget*);

void setSelectSourcePathDialog(GtkWidget*);
